#!/bin/bash

function downloadPapers(){

    url="https://dblp.uni-trier.de/db/conf/icse/icse2018.html" #$1
    pubType='acm' #ieee|acm indicating where the papers of the vennue are published.
    confOrJour="conf" #conf|jour
    listOut="list_icse18"
    paperDir="${listOut}.papers/"
    python3 get_list.py "${url}" "${listOut}" "${confOrJour}" #download the doi url for each paper first
    python3 pdfdownload_acm-ieee.py "${listOut}" "${pubType}" "${paperDir}"

}

#downloadPapers

#only print the first paper of each paper
function printPapers(){

    paperDir=$1
    for i in `seq 1 50`
    do
        lp -P 1 ${paperDir}/${i}.pdf #ICSE2018/${i}.pdf
    done

}
#printPapers ICSE2018
